home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol F-12 / (Vol F-12) Jun 02 2012.iso / Screensaver / screensaver_installer.exe / ____swmx / scripts / frame_1 / DoAction_7.as < prev    next >
Text File  |  2004-10-21  |  2KB  |  38 lines

  1. _global.ScreenweaverDialogs = function()
  2. {
  3. };
  4. ScreenweaverDialogs.prototype.BrowseForFile = function(args, callback, scope)
  5. {
  6.    swInterface.callMethod("browseForFile",args,callback,false,scope);
  7. };
  8. ScreenweaverDialogs.prototype.BrowseForFile_Open = function(name, filter, dir, title, callback, scope)
  9. {
  10.    args = {filepath:path,filename:name,filefilter:filter,initdir:dir,title:title,multiplefiles:false,defaultext:"",save:false};
  11.    this.BrowseForFile(args,callback,scope);
  12. };
  13. ScreenweaverDialogs.prototype.BrowseForFiles_Open = function(name, filter, dir, title, callback, scope)
  14. {
  15.    args = {filename:name,filefilter:filter,initdir:dir,title:title,multiplefiles:true,defaultext:"",save:false};
  16.    this.BrowseForFile(args,callback,scope);
  17. };
  18. ScreenweaverDialogs.prototype.BrowseForFile_Save = function(name, filter, dir, title, defex, callback, scope)
  19. {
  20.    args = {filename:name,filefilter:filter,initdir:dir,title:title,defaultext:defex,multiplefiles:false,save:true};
  21.    this.BrowseForFile(args,callback,scope);
  22. };
  23. ScreenweaverDialogs.prototype.BrowseForFolder = function(title, callback, scope)
  24. {
  25.    args = {title:title};
  26.    swInterface.callMethod("BrowseForFolder",args,callback,false,scope);
  27. };
  28. ScreenweaverDialogs.prototype.ChooseColor = function(initcolor, callback, scope)
  29. {
  30.    args = {initcolor:initcolor};
  31.    swInterface.callMethod("ChooseColor",args,callback,false,scope);
  32. };
  33. ScreenweaverDialogs.prototype.ChooseFont = function(title, size, color, bold, italic, callback, scope)
  34. {
  35.    args = {title:title,size:size,color:color,bold:bold,italic:italic};
  36.    swInterface.callMethod("ChooseFont",args,callback,false,scope);
  37. };
  38.